using System;
using MySql.Data.MySqlClient;

namespace blog.Models {
    public class UsersModel {
        public int id { set; get; }
        public string name { set; get; }
        public string account { set; get; }
        public string password { set; get; }

        public UsersModel () { }

        public UsersModel (MySqlDataReader reader) {
            id = Convert.ToInt32(reader["id"].ToString());
            name = reader["name"].ToString ();
            account = reader["account"].ToString ();
            password = reader["password"].ToString ();
        }
    }
}